
const Koa = require('koa');

const bodyParser = require("koa-bodyparser");
const app = new Koa();

app.use(bodyParser());
const cors = require('koa2-cors');
app.use(cors());

const injectRoutes = require('./routes')
injectRoutes(app)




app.listen(8000, () => {
  console.log(`服务启动在http://localhost:8000 端口`)
})